<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk">
    <link href="http://images.5d6d.com/orig/admincp/admincp.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="http://images.5d6d.com/orig/javascript/common.js"></script>
    <script src="http://images.5d6d.com/orig/javascript/iframe.js" type="text/javascript"></script>
    <script language="JavaScript">
        function checkalloption(form, value) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.value == value && e.type == 'radio' && e.disabled != true) {
                    e.checked = true;
                }
            }
        }

        function checkallvalue(form, value, checkall) {
            var checkall = checkall ? checkall : 'chkall';
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.type == 'checkbox' && e.value == value) {
                    e.checked = form.elements[checkall].checked;
                }
            }
        }

        function zoomtextarea(objname, zoom) {
            zoomsize = zoom ? 10 : -10;
            obj = $(objname);
            if (obj.rows + zoomsize > 0 && obj.cols + zoomsize * 3 > 0) {
                obj.rows += zoomsize;
                obj.cols += zoomsize * 3;
            }
        }

        function redirect(url) {
            window.location.replace(url);
        }

        var collapsed = getcookie('CM2_collapse');
        function collapse_change(menucount) {
            if ($('menu_' + menucount).style.display == 'none') {
                $('menu_' + menucount).style.display = '';
                collapsed = collapsed.replace('[' + menucount + ']', '');
                $('menuimg_' + menucount).src = 'http://images.5d6d.com/orig/admincp/menu_reduce.gif';
            } else {
                $('menu_' + menucount).style.display = 'none';
                collapsed += '[' + menucount + ']';
                $('menuimg_' + menucount).src = 'http://images.5d6d.com/orig/admincp/menu_add.gif';
            }
            setcookie('CM2_collapse', collapsed, 2592000);
        }
    </script>
</head>

<body leftmargin="10" topmargin="10">
<table width="100%" border="0" cellpadding="2" cellspacing="6">
<tr>
<td>
<s:form method="post" action="${cxt}/admin/normalUserGroup.do">
    <a name="d6f648ec5c05e6d2"></a>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
        <tr class="header">
            <td colspan="2">编辑用户组<a href="###" onclick="collapse_change('d6f648ec5c05e6d2')"><img
                    id="menuimg_d6f648ec5c05e6d2" src="http://images.5d6d.com/orig/admincp/menu_reduce.gif" border="0"
                    style="float: right; margin-top: -12px; margin-right: 8px;"/></a>
            </td>
        </tr>
        <tbody id="menu_d6f648ec5c05e6d2">
            <tr>

                <s:hidden name="userGroup.id" value="${actionBean.userGroup.id}"/>
                <td width="60%" class="altbg1"><b>用户组头衔:</b></td>
                <td class="altbg2"><s:text size="30" name="userGroup.title" value="${actionBean.userGroup.title}"/>
                </td>
            </tr>
            <%--<tr>
                <td width="60%" class="altbg1"><b>用户组设置方案:</b></td>
                <td class="altbg2"><select name="projectid"
                                           onchange="window.location='admincp.php?action=usergroups&edit=9&projectid='+this.options[this.options.selectedIndex].value">
                    <option value="0" selected="selected">无</option>
                </select></td>
            </tr>--%>
    </table>
    <br><a name="fc7692b098d134af"></a>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
        <tr class="header">
            <td colspan="2">基本权限<a href="###" onclick="collapse_change('fc7692b098d134af')"><img
                    id="menuimg_fc7692b098d134af" src="http://images.5d6d.com/orig/admincp/menu_reduce.gif" border="0"
                    style="float: right; margin-top: -12px; margin-right: 8px;"/></a>
            </td>
        </tr>
        <%
            
        %>
        <tbody id="menu_fc7692b098d134af">
            <tr>
                <td width="60%" class="altbg1"><b>允许访问论坛:</b><br><span class="smalltxt">选择“否”将彻底禁止用户访问论坛的任何页面</span>
                </td>
                <td class="altbg2">
                    <s:hidden name="permissionsStr" value="canViewForum"/>
                    <input class="radio" class="radio" type="radio" name="canViewForum" value="canViewForum"
                                         <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canViewForum')!=-1}">checked</c:if>> 是
                    &nbsp; &nbsp;
                    <input class="radio" class="radio" type="radio" name="canViewForum" value="0" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canViewForum')==-1}">checked</c:if> > 否
                </td>
            </tr>
           <%-- <tr>
                <td width="60%" class="altbg1"><b>阅读权限:</b><br><span class="smalltxt">设置用户浏览帖子或附件的权限级别，范围 0～255，0 为禁止用户浏览任何帖子或附件。当用户的阅读权限小于帖子或附件的阅读权限许可(默认时为 1)时，用户将不能阅读该帖子或下载该附件</span>
                </td>
                <td class="altbg2"><input type="text" size="30" name="readaccessnew" value="0">
                </td>
            </tr>--%>
            <tr>
                <td width="60%" class="altbg1"><b>允许查看用户资料:</b><br><span class="smalltxt">设置是否允许查看其他用户的资料信息</span></td>
                <td class="altbg2">
                    <s:hidden name="permissionsStr" value="canViewUserProfile"/>
                    <input class="radio" class="radio" type="radio" name="canViewUserProfile" value="canViewUserProfile"
                                          <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canViewUserProfile')!=-1}">checked</c:if>>
                    是 &nbsp; &nbsp;
                    <input class="radio" class="radio" type="radio" name="canViewUserProfile" value="0" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canViewUserProfile')==-1}">checked</c:if>> 否
                </td>
            </tr>


            <tr>
                <td width="60%" class="altbg1"><b>允许使用搜索:</b><br><span class="smalltxt">设置是否允许通过数据库进行帖子搜索和短消息搜索。注意: 当数据量大时，全文搜索将非常耗费服务器资源，请慎用</span>
                </td>
                <td class="altbg2">
                     <s:hidden name="permissionsStr" value="canSearch"/>
                    <input class="radio" type="radio" name="canSearch" value="canSearch" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canSearch')!=-1}">checked</c:if>> 允许搜索帖子内容<br>
                    <input class="radio" type="radio" name="canSearch" value="0" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canSearch')==-1}">checked</c:if>> 禁用搜索<br>
                </td>
            </tr>
            <tr>
                <td width="60%" class="altbg1"><b>允许发新话题:</b><br><span class="smalltxt">设置是否允许发新话题。注意: 只有当用户组阅读权限高于 0 时，才能发新话题</span>
                </td>
                <td class="altbg2">
                    <s:hidden name="permissionsStr" value="canNewTopic"/>
                    <input class="radio" type="radio" name="canNewTopic" value="canNewTopic" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canNewTopic')!=-1}">checked</c:if>>
                    允许发新话题<br><input
                        class="radio" type="radio" name="canNewTopic" value="0" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canNewTopic')==-1}">checked</c:if>> 不允许发新话题<br>
                </td>
            </tr>

            <tr>
                <td width="60%" class="altbg1"><b>允许发表回复:</b><br><span class="smalltxt">设置是否允许发表回复。注意: 只有当用户组阅读权限高于 0 时，才能发表回复</span>
                </td>
                <td class="altbg2">
                     <s:hidden name="permissionsStr" value="canPost"/>
                    <input class="radio" type="radio" name="canPost" value="canPost" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canPost')!=-1}">checked</c:if>>
                    允许发表回复<br><input
                        class="radio" type="radio" name="canPost" value="0" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canPost')==-1}">checked</c:if>> 不允许发表回复<br>
                </td>
            </tr>

        <tr>
                <td width="60%" class="altbg1"><b>允许下载/查看附件:</b><br><span class="smalltxt">设置是否允许在没有设置特殊权限的论坛中下载或查看附件</span>
                </td>
                <td class="altbg2">
                     <s:hidden name="permissionsStr" value="canDownAttach"/>
                    <input class="radio" type="radio" name="canDownAttach" value="canDownAttach" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canDownAttach')!=-1}">checked</c:if>>
                    允许下载/查看附件<br><input
                        class="radio" type="radio" name="canDownAttach" value="0" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canDownAttach')==-1}">checked</c:if>> 不允许下载/查看附件<br>
                </td>
            </tr>

        <tr>
                <td width="60%" class="altbg1"><b>允许发布附件:</b><br><span class="smalltxt">设置是否允许上传附件到没有设置特殊权限的论坛中。</span>
                </td>
                <td class="altbg2">
                    <s:hidden name="permissionsStr" value="canUploadAttach"/>
                    <input class="radio" type="radio" name="canUploadAttach" value="canUploadAttach" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canUploadAttach')!=-1}">checked</c:if>>
                    允许发布附件<br><input
                        class="radio" type="radio" name="canUploadAttach" value="0" <c:if test="${fn:indexOf(actionBean.userGroup.permissions,'canUploadAttach')==-1}">checked</c:if>> 不允许发布附件<br>
                </td>
            </tr>

    </table>
    <br><a name="bbbc225db9ab0ecd"></a>
    <center>
        <input class="button" type="submit" name="setDetaiPurview" value="提 交">&nbsp;&nbsp;&nbsp;
        <input class="button" type="submit" name="saveconfigsubmit" value="保存为设置方案">
    </center>
</s:form>
</td>
</tr>
</table>
<br><br>

<div class="footer">
    <hr size="0" noshade color="#83B733" width="80%">
    Powered by <a href="http://www.discuz.net" target="_blank" style="color: #333"><b>Discuz!</b> 5.5.0</a> &nbsp;&copy;
    2001-2007, <b>
    <a href="http://www.comsenz.com" target="_blank" style="color: #333">Comsenz Inc.</a></b></div>
<br>
<script src="http://images.5d6d.com/js/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
    _uacct = "UA-63457-15";
    urchinTracker();
</script>
</body>
</html>
